package com.happly.happlycloud.util;

import com.happly.happlycloud.common.ServerResponse;
import org.springframework.stereotype.Component;

@Component
public class QuestionUtil {

        public ServerResponse<String> createPaperTitle(int stateId, String userId){
        //试卷名称生成策略
        //时间+阶段编号+用户编号
        String paperTitle=userId+System.currentTimeMillis()+stateId;
        return ServerResponse.createBySuccess(paperTitle);
    }
}
